home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_12_03
/
allison
/
xassert.c
< prev
Wrap
C/C++ Source or Header
|
1994-01-05
|
292b
|
15 lines
LISTING 6 - The __assert support function
/* xassert.c */
#include <stdio.h>
#include <stdlib.h>
void __assert(char *cond, char *fname, long lineno)
{
fprintf(stderr,
"Assertion failed: %s, file %s, line %ld\n",
cond,fname,lineno);
abort();
}